<template>
  <div>
    <HeaderNav title="我的收藏"></HeaderNav>
    <PostItem v-for="item in postList" :key="item.id" :postData="item"></PostItem>
  </div>
</template>

<script>
import HeaderNav from "../components/headerNav";
import PostItem from "../components/postItem";
export default {
  data() {
    return {
      postList: [],
    };
  },
  components: {
    HeaderNav,
    PostItem,
  },
  created() {
    this.$axios({
      url: "/user_star",
    }).then((res) => {
      this.postList = res.data.data;
      console.log(this.postList);
    });
  },
};
</script>

<style>
</style>